import request from '../utils/request.js'

//获取栏目数据
export const getCategoryAPI = () => {
	return request({
		url: '/category',

	})/* .catch(err => {
		return Promise.reject(err);
	}) */
}


//添加栏目数据
export const setCategoryAPI = (data) => {
	return request({
		method: 'POST',
		url: '/category',
		data
	})
}
